package com.kai.service.user.mapper;

import com.kai.service.data.response.system.dto.SevenDaysDataDto;
import com.kai.service.user.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author wjk
 * @since 2021-11-22
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 当天新增用户
     *
     * @return
     */
    Integer todayNewUser();

    /**
     * 最近七天新增用户
     *
     * @return
     */
    SevenDaysDataDto sevenDaysNewUser(@Param("times") List<String> times);
}
